Use a GPid on gdk_spawn_on_screen[_with_pipes] instead a gint
authorJavier Jardón <jjardon@gnome.org>
Sun, 6 Jun 2010 13:40:46 +0000 (15:40 +0200)
committerJavier Jardón <jjardon@gnome.org>
Thu, 10 Jun 2010 01:52:35 +0000 (03:52 +0200)
Reported by Nick Schermer in bug
https://bugzilla.gnome.org/show_bug.cgi?id=602289

gdk/directfb/gdkspawn-directfb.c
gdk/quartz/gdkspawn-quartz.c
gdk/win32/gdkspawn-win32.c
gdk/x11/gdkspawn-x11.c

index 228dd466435e49b8e960d0eb6ccfeb4ba39b2945..a33d9d9d1653094c996fa6ba5a87e3940aa9e390 100644 (file)
@@ -35,7 +35,7 @@ gdk_spawn_on_screen (GdkScreen             *screen,
                     GSpawnFlags            flags,
                     GSpawnChildSetupFunc   child_setup,
                     gpointer               user_data,
-                    gint                  *child_pid,
+                    GPid                  *child_pid,
                     GError               **error)
 {
   g_return_val_if_fail (GDK_IS_SCREEN (screen), FALSE);
@@ -58,7 +58,7 @@ gdk_spawn_on_screen_with_pipes (GdkScreen            *screen,
                                GSpawnFlags           flags,
                                GSpawnChildSetupFunc  child_setup,
                                gpointer              user_data,
-                               gint                 *child_pid,
+                               GPid                 *child_pid,
                                gint                 *standard_input,
                                gint                 *standard_output,
                                gint                 *standard_error,
index 8f0df209637c25609a37cf1ed56e1de07d6054d8..6cddd648b1bda83569979c0c76a9bc58dede1946 100644 (file)
@@ -34,7 +34,7 @@ gdk_spawn_on_screen (GdkScreen             *screen,
                     GSpawnFlags            flags,
                     GSpawnChildSetupFunc   child_setup,
                     gpointer               user_data,
-                    gint                  *child_pid,
+                    GPid                  *child_pid,
                     GError               **error)
 {
   g_return_val_if_fail (GDK_IS_SCREEN (screen), FALSE);
@@ -46,7 +46,7 @@ gdk_spawn_on_screen (GdkScreen             *screen,
                        flags,
                        child_setup,
                        user_data,
-                       (GPid*)child_pid,
+                       child_pid,
                        error);
 }
 
@@ -58,7 +58,7 @@ gdk_spawn_on_screen_with_pipes (GdkScreen            *screen,
                                GSpawnFlags           flags,
                                GSpawnChildSetupFunc  child_setup,
                                gpointer              user_data,
-                               gint                 *child_pid,
+                               GPid                 *child_pid,
                                gint                 *standard_input,
                                gint                 *standard_output,
                                gint                 *standard_error,
@@ -73,7 +73,7 @@ gdk_spawn_on_screen_with_pipes (GdkScreen            *screen,
                                   flags,
                                   child_setup,
                                   user_data,
-                                  (GPid*)child_pid,
+                                  child_pid,
                                   standard_input,
                                   standard_output,
                                   standard_error,
index 8f0df209637c25609a37cf1ed56e1de07d6054d8..6cddd648b1bda83569979c0c76a9bc58dede1946 100644 (file)
@@ -34,7 +34,7 @@ gdk_spawn_on_screen (GdkScreen             *screen,
                     GSpawnFlags            flags,
                     GSpawnChildSetupFunc   child_setup,
                     gpointer               user_data,
-                    gint                  *child_pid,
+                    GPid                  *child_pid,
                     GError               **error)
 {
   g_return_val_if_fail (GDK_IS_SCREEN (screen), FALSE);
@@ -46,7 +46,7 @@ gdk_spawn_on_screen (GdkScreen             *screen,
                        flags,
                        child_setup,
                        user_data,
-                       (GPid*)child_pid,
+                       child_pid,
                        error);
 }
 
@@ -58,7 +58,7 @@ gdk_spawn_on_screen_with_pipes (GdkScreen            *screen,
                                GSpawnFlags           flags,
                                GSpawnChildSetupFunc  child_setup,
                                gpointer              user_data,
-                               gint                 *child_pid,
+                               GPid                 *child_pid,
                                gint                 *standard_input,
                                gint                 *standard_output,
                                gint                 *standard_error,
@@ -73,7 +73,7 @@ gdk_spawn_on_screen_with_pipes (GdkScreen            *screen,
                                   flags,
                                   child_setup,
                                   user_data,
-                                  (GPid*)child_pid,
+                                  child_pid,
                                   standard_input,
                                   standard_output,
                                   standard_error,
index 5c7bab6c96f96b099382826a141f3078f6e68d77..d28d8838fdfa93d64b92ca91a78fa23545c0f528 100644 (file)
@@ -83,7 +83,7 @@ gdk_spawn_on_screen (GdkScreen             *screen,
                     GSpawnFlags            flags,
                     GSpawnChildSetupFunc   child_setup,
                     gpointer               user_data,
-                    gint                  *child_pid,
+                    GPid                  *child_pid,
                     GError               **error)
 {
   UserChildSetup setup_data;
@@ -143,7 +143,7 @@ gdk_spawn_on_screen_with_pipes (GdkScreen            *screen,
                                GSpawnFlags           flags,
                                GSpawnChildSetupFunc  child_setup,
                                gpointer              user_data,
-                               gint                 *child_pid,
+                               GPid                 *child_pid,
                                gint                 *standard_input,
                                gint                 *standard_output,
                                gint                 *standard_error,